<script>
	import store from '@/store';
	import {
		mapState,
		mapMutations
	} from 'vuex';
	export default {
		methods:{
			...mapMutations(['login']),
		},
		onLaunch: function() {
			console.log('App Launch')
			let _this = this
			let unserInfo = uni.getStorageSync("userInfo")
			console.log('============='+JSON.stringify(unserInfo))
			if (unserInfo != '') {
				//通过token验证用户信息是否过期
				let userInfo = uni.getStorageSync('userInfo');
				_this.login(userInfo)
				console.log("结束")
			}
			// uni.setStorageSync("shopId",10)
			// uni.setStorageSync("shopName","夕阳红老年学堂")
			// uni.setStorageSync("accessId","6X0sjhFeJWw3gdZKai1z85DlN")
			uni.setStorageSync("shopId",17)
			uni.setStorageSync("shopName","苏州市相城区老年大学")
			uni.setStorageSync("accessId","cgjxsVkyLeA39hC1PRiY5GWMU")
		},
		onShow: function() {
			console.log('App Show')
		},
		onHide: function() {
			console.log('App Hide')
		}
	}
</script>

<style lang="scss">
	@import url("@/components/aui-picker/common/aui/css/aui.css");
	@import url("@/components/aui-picker/common/aui/css/aui.iconfont.css");
	.uni-swiper-wrapper {
	    /deep/ .uni-swiper-dots { // 指示点整个区域
	        // bottom: 100rpx;
	    }
	    /deep/ .uni-swiper-dot { // 指示点元素默认样式
	        width: 16upx !important;
	        height: 16upx !important;
	    }
	    /deep/ .uni-swiper-dot-active { // 指示点元素激活（当前选中）状态样式
	        background-color: #FF5533!important;
	        width: 15px!important;;
	        border-radius: 10px;
	        transition: .5s;
	    }
	}
	.uni-input-placeholder{font-size: 12px;}
	.textarea-placeholder{font-size: 12px;}
	body{font-size:12px;color:#333333;box-sizing: border-box;}

	/*每个页面公共css */
	.content{padding-bottom: 20rpx;}
	.colorRed{color:red}
	.hr{background-color: rgb(248,248,248);height: 10px;}
	.shortHr{background-color: white;height:3px;width:20px;margin:8px 0;}
	.h1{font-size:36rpx;font-weight: bold;padding:5px 10px;}
	.h2{font-size:28rpx;font-weight: bold;padding:5px 10px;}
	.commonTitle{font-size:32rpx;font-weight: bold;color: #333333;}
	.icon{height:20px;width:20px;vertical-align: middle;margin-right:7px}
	.icon_arrow{height:13px;width:13px;vertical-align: middle;margin-left:5px;margin-right: 3px;}
	.colorStatus0{
		color:red;
	}
	.colorStatus1{
		color:orange;
	}
	.colorStatus-1{
		color:#999999;
	}
	.colorOrange{
		color:#FF5533
	}
	.colorBlack{
		color:#333333
	}
	.colorGray{
		color: #666666;
	}
</style>
